<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="css/style.css"/>       
        <link href="assets/css/codemirror.css" rel="stylesheet">
        <link rel="stylesheet" href="assets/css/ace.min.css" />
        <link rel="stylesheet" href="assets/css/font-awesome.min.css" />
		<script src="assets/js/jquery.min.js"></script>
		<script type="text/javascript">
			window.jQuery || document.write("<script src='assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
		</script>
		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
		<script src="assets/js/bootstrap.min.js"></script>
		<script src="assets/js/typeahead-bs2.min.js"></script>
		<!-- page specific plugin scripts -->
		<script src="assets/js/jquery.dataTables.min.js"></script>
		<script src="assets/js/jquery.dataTables.bootstrap.js"></script>
        <script type="text/javascript" src="js/H-ui.js"></script> 
        <script type="text/javascript" src="js/H-ui.admin.js"></script> 
        <script src="assets/layer/layer.js" type="text/javascript" ></script>
        <script src="assets/laydate/laydate.js" type="text/javascript"></script>
<title>考勤记录</title>
</head>

<body>
<div class="page-content clearfix">
    <div id="Member_Ratings">
    <div class="search_style">
     <form action="" method="post" class="form form-horizontal" id="form-article-add" enctype="multypart/form-data">
	 <ul class="search_content clearfix">
	  <li><label class="l_f">考勤月份：</label><select id="select_id" name="select_name">
	   	<option value="">请选择月份</option>
		<option value="2016-12">2016/12</option>
		<option value="2017-1">2017/01</option>
		<option value="2017-2">2017/02</option>
	   </select></li>
       <li style="width:400px;"><label class="l_f">上传文档：</label><input type="file"  title="请选择上传的考勤文档" style="width:300px;"/></li>
       <li ><button type="button" class="btn_search"  style="width:100px;">确认上传</button></li>
      </ul>
		
	  </form>
	 
     <div class="table_menu_list">
       <table class="table table-striped table-bordered table-hover" id="sample-table">
		<thead>
		 <tr>
				<th width="80">序号</th>
				<th width="100">员工编号</th>
				<th width="120">员工姓名</th>
				<th width="120">员工职位</th>
				<th width="120">所属部门</th>
				<th width="120">月份</th>
				<th width="100">迟到次数</th>
				<th width="100">早退次数</th>
				<th width="120">累计矿工(天)</th>
				<th width="120">综合评价</th>                
				<th width="150" >操作</th>
			</tr>
		</thead>
	<tbody>
		<tr>
          <td>1</td>
          <td>12654</td>
          <td>张三</td>
          <td>软件开发师</td>
          <td>开发部</td>
          <td>2016-12</td>
          <td >2</td>
          <td>0</td>
          <td>0</td>
          <td ><span class="label label-success radius">优秀</span></td>
          <td class="td-manage">
          <a title="查看"   class="btn btn-xs btn-info property_edit" ><i class="icon-list bigger-120"></i></a> 
          </td>
		</tr>
         <tr>
          <td>2</td>
          <td>12354</td>
          <td>李四</td>
          <td>软件开发师</td>
          <td>开发部</td>
          <td>2016-12</td>
          <td >2</td>
          <td>0</td>
          <td>0</td>
          <td ><span class="label label-success radius">优秀</span></td>
          <td class="td-manage">
          <a title="查看"   class="btn btn-xs btn-info property_edit" ><i class="icon-list bigger-120"></i></a> 
          </td>
		</tr>
		<tr>
          <td>3</td>
          <td>12324</td>
          <td>王五</td>
          <td>软件开发师</td>
          <td>开发部</td>
          <td>2016-12</td>
          <td >2</td>
          <td>0</td>
          <td>0</td>
          <td ><span class="label label-success radius">优秀</span></td>
          <td class="td-manage">
          <a title="查看"   class="btn btn-xs btn-info property_edit" ><i class="icon-list bigger-120"></i></a> 
          </td>
		</tr>
		<tr>
          <td>4</td>
          <td>12364</td>
          <td>栗灏明</td>
          <td>软件开发师</td>
          <td>开发部</td>
          <td>2016-12</td>
          <td >2</td>
          <td>0</td>
          <td>0</td>
          <td ><span class="label label-success radius">优秀</span></td>
          <td class="td-manage">
          <a title="查看"   class="btn btn-xs btn-info property_edit" ><i class="icon-list bigger-120"></i></a> 
          </td>
		</tr>
		<tr>
          <td>5</td>
          <td>12242</td>
          <td>赵六</td>
          <td>软件开发师</td>
          <td>开发部</td>
          <td>2016-12</td>
          <td >2</td>
          <td>0</td>
          <td>0</td>
          <td ><span class="label label-success radius">优秀</span></td>
          <td class="td-manage">
          <a title="查看"   class="btn btn-xs btn-info property_edit" ><i class="icon-list bigger-120"></i></a> 
          </td>
		</tr>
		<tr>
          <td>6</td>
          <td>12142</td>
          <td>徐七</td>
          <td>软件开发师</td>
          <td>开发部</td>
          <td>2016-12</td>
          <td >2</td>
          <td>0</td>
          <td>0</td>
          <td ><span class="label label-success radius">优秀</span></td>
          <td class="td-manage">
          <a title="查看"   class="btn btn-xs btn-info property_edit" ><i class="icon-list bigger-120"></i></a> 
          </td>
		</tr>
      </tbody>
	</table>
   </div>
  </div>
 </div>
</div>
<!--编辑区域分配图层-->
<div class="edit_menber" id="edit_menber_style" style="display:none">
  <ul class=" page-content">
    <div class="Operate_cont clearfix">
	 <div class="brand_detailed">
    <ul class="Info_style clearfix" style="width:510px; margin-top:0px;">
		<li><label class="label_name">员工编号：</label> <span class="name">0142</span></li>
		<li><label class="label_name">员工名称：</label><span class="name">张三</span></li>
		<li><label class="label_name">所属部门：</label> <span class="name">销售部</span></li>
		<li><label class="label_name">员工职位：</label><span class="name">销售员</span></li>
		<li><label class="label_name">月份：</label><span class="name">2016-12</span></li>
		<li><label class="label_name">迟到次数：</label><span class="name">2</span></li>
		<li><label class="label_name">早退次数：</label><span class="name">0</span></li>
		<li><label class="label_name">累计矿工(天)：</label><span class="name">0</span></li>
      <li class="b_Introduce"><label class="label_name">考勤记录：</label><span class="name"> 
	  <table class="table table-striped table-bordered table-hover" width="100%" id="sample-table1">
		<thead>
		 <tr>
			<th width="80px">序号</th>
			<th width="120px">日期</th>
			<th width="120px">签到时间</th>
			<th width="120px">签退时间</th>      
			<th width="120px">状态</th>
			</tr>
		</thead>
	<tbody>
     <tr>
       <td>1</td>
	   <td>2016-12-01</td>
	   <td>08:32</td>
	   <td>19:32</td>
	   <td>正常工作</td>
	 </tr>
	 <tr>
       <td>2</td>
	   <td>2016-12-02</td>
	   <td>08:32</td>
	   <td>19:32</td>
	   <td>正常工作</td>
	 </tr>
	 <tr>
       <td>3</td>
	   <td>2016-12-03</td>
	   <td>08:32</td>
	   <td>19:32</td>
	   <td>正常工作</td>
	 </tr>
	 
	 <tr>
       <td>4</td>
	   <td>2016-12-04</td>
	   <td>08:32</td>
	   <td>19:32</td>
	   <td>正常工作</td>
	 </tr>
	 <tr>
       <td>5</td>
	   <td>2016-12-05</td>
	   <td>08:32</td>
	   <td>19:32</td>
	   <td>正常工作</td>
	 </tr>
    </tbody>
    </table></span></li>
    </ul>
    
 </div>
</div>
</ul>
</div>
</body>
</html>
<script>
/*区域分配-编辑*/
 $('.property_edit').on('click', function(){
	  layer.open({
        type: 1,
        title: '查看',
		maxmin: true, 
		shadeClose:false, //点击遮罩关闭层
        area : ['600px' , ''],
        content:$('#edit_menber_style'),
		btn:['返回'],
		yes:function(index,layero){	
		 var num=0;
		 var str="";
     $(".add_menber input[type$='text']").each(function(n){
          if($(this).val()=="")
          {
               
			   layer.alert(str+=""+$(this).attr("name")+"不能为空！\r\n",{
                title: '提示框',				
				icon:0,								
          }); 
		    num++;
            return false;            
          } 
		 });
		  if(num>0){  return false;}	 	
          else{
			   layer.close(index);	
		  }		  		
		  		     				
		}
    });
});
jQuery(function($) {
				var oTable1 = $('#sample-table').dataTable( {
				"aaSorting": [[ 1, "desc" ]],//默认第几个排序
		"bStateSave": true,//状态保存
		"aoColumnDefs": [
		  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
		  {"orderable":false,"aTargets":[2,3,4,5,6,7,8,9,10]}// 制定列不参与排序
		] } );
				
				
				$('table th input:checkbox').on('click' , function(){
					var that = this;
					$(this).closest('table').find('tr > td:first-child input:checkbox')
					.each(function(){
						this.checked = that.checked;
						$(this).closest('tr').toggleClass('selected');
					});
						
				});
			
			
				$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
				function tooltip_placement(context, source) {
					var $source = $(source);
					var $parent = $source.closest('table')
					var off1 = $parent.offset();
					var w1 = $parent.width();
			
					var off2 = $source.offset();
					var w2 = $source.width();
			
					if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
					return 'left';
				}
			})

/*用户-查看*/
function member_show(title,url,id,w,h){
	layer_show(title,url+'#?='+id,w,h);
}
/*用户-删除*/
function member_del(obj,id){
	layer.confirm('确认要删除吗？',function(index){
		$(obj).parents("tr").remove();
		layer.msg('已删除!',{icon:1,time:1000});
	});
}
laydate({
    elem: '#start',
    event: 'focus' 
});

</script>